using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
	[Table("bgm_request_customs_field"), DataContract]
    public class RequestCustomsField
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BgmReqCusId", ResourceType = typeof(Resources.RequestCustomsFieldResource))]
		[Column("bgm_req_cus_seq", TypeName="int")]
        public int BgmReqCusId { get; set; }

		[ForeignKey("BgmReq")]
		[DataMember, Display(Name = "BgmReqId", ResourceType = typeof(Resources.RequestCustomsFieldResource))]
		[Column("bgm_req_seq", TypeName="int")]
        public Nullable<int> BgmReqId { get; set; }

		[ForeignKey("PrjCtrl")]
		[DataMember, Display(Name = "PrjCtrlId", ResourceType = typeof(Resources.RequestCustomsFieldResource))]
		[Column("prj_ctrl_seq", TypeName="int")]
        public Nullable<int> PrjCtrlId { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.RequestCustomsFieldResource))]
		[Column("descr", TypeName="ntext")]
        public string Descr { get; set; }

        [DataMember]
        public virtual Request BgmReq { get; set; }

        [DataMember]
		public virtual ProjectControl PrjCtrl { get; set; }

    }
}